package com.zoe.shardingjdbc.controller;

import cn.hutool.core.date.DateUtil;
import com.zoe.shardingjdbc.util.ResultWrapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Zoe.Zhang
 * @Date: 2021/07/16
 * @Description 你好
 */
@RestController
public class HelloController {

    /**
     * 欢迎界面
     *
     * @return
     */
    @GetMapping("/hello")
    public ResultWrapper helloResult() {
        return ResultWrapper.success(DateUtil.now());
    }
}
